<?php 

class Ext_Role
{
    public $roleId   = 1;
    public $roleType = 'guest';
    
    public function __construct()
    {
    }
    
    public function build($roleId)
    {
        if(!$roleId){
            return $this;
        }

        $this->roleId = $roleId;
        
        $role = App_Model_DbTable_Acl_Role::getInstance()->getRowById($roleId);
        if($role){
            $this->roleType = $role['roleType'];
        }
        
        return $this;
    }

}